#include <iostream>
#include "Complex.h"

using namespace std;

int main(int argc, char **argv)
{

	Complex c1(1, 2);
	Complex c2(3, 4);

	Complex c = c1 + c2;
	cout << "c1 + c2 = " << c.getA() << " + " << c.getB() << "i" << endl;

	c = c1 - c2;
	cout << "c1 - c2 = " << c.getA() << " + " << c.getB() << "i" << endl;

	c = c1 * c2;
	cout << "c1 * c2 = " << c.getA() << " + " << c.getB() << "i" << endl;

	c = c1 / c2;
	cout << "c1 / c2 = " << c.getA() << " + " << c.getB() << "i" << endl;

	(c = c2) = c1;

	Complex t1(0, 0);
	cout << "t1 = " << t1.getA() << "+" << t1.getB() << "i" << endl;
	Complex tt = ++t1;
	cout << "++t = " << tt.getA() << "+" << tt.getB() << "i" << endl;
	Complex t2(0, 0);
	tt = t2++;
	cout << "t++ = " << tt.getA() << "+" << tt.getB() << "i" << endl;

	return 0;
}